package com.study.entity.system;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @Author wfw
 * @Date 2020/07/13 10:48
 */
@Entity
@Table(name = "pe_user_role")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class RoleAndUserRelations implements Serializable {
    private static final long serialVersionUID = -9018751704144374797L;
    @Id
    private String id;

    @Column(name = "role_id")
    private String roleId;

    @Column(name = "user_id")
    private String userId;
}
